package com.cheng.example.book.advise151.chap4;

import java.util.Scanner;

public class Client57 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        while (input.hasNext()) {
            String str = input.nextLine();
            // 使用split方法分割后统计
            int wordsCount = str.split(" ").length;
            System.out.println(str + "单词数：" + wordsCount);
        }
    }


}
